# ---------- ---------- ---------- ---------- ---------- ----------
#
# langskip
#
# ---------- ---------- ---------- ---------- ---------- ----------

target: help


# ---------- ---------- ---------- ---------- ---------- ----------
# functions
# ---------- ---------- ---------- ---------- ---------- ----------

define fix
	@npx prettier@2.8.8 --write \
            --parser css \
            static/style/*.css
endef


# ---------- ---------- ---------- ---------- ---------- ----------
# phonies
# ---------- ---------- ---------- ---------- ---------- ----------

.PHONY: help
help:
	@echo "Usage: make [PHONY]"
	@sed -n -e '/sed/! s/\.PHONY: //p' Makefile


.PHONY: build
build:
	@zola build


.PHONY: clean
clean:
	@rm -rf public


.PHONY: fix
fix:
	@$(call fix)


.PHONY: rebuild
rebuild: clean fix build


.PHONY: serve
serve:
	@zola serve --port 8000
